<template>
  <div class="app-container">
    <div class="app-container-inner">
      <div class="main">
        <el-tabs v-model="activeName" class="demo-tabs">
          <el-tab-pane label="供应商分类" name="type">
            <TypeCard />
          </el-tab-pane>
          <el-tab-pane label="供应商等级" name="grade">
            <GradeCard />
          </el-tab-pane>
          <el-tab-pane label="供应商字段" name="field">
            <FieldCard />
          </el-tab-pane>
        </el-tabs>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
  import TypeCard from './components/TypeCard/index.vue'
  import GradeCard from './components/GradeCard/index.vue'
  import FieldCard from './components/FieldCard/index.vue'
  import { useRoute } from 'vue-router'
  import pageComponentName from '@/config/page-component-name'

  defineOptions({
    name: pageComponentName.setting.supplierSet,
  })

  const route = useRoute()
  const activeName = route.query.active == undefined ? 'type' : route.query.active
</script>

<style scoped lang="scss">
  @import './index.scss';
</style>
